local yawang = fk.CreateSkill{
  name = "mod__yawang",
  frequency = Skill.Compulsory,
}
Fk:loadTranslationTable{
  ["mod__yawang"] = "雅望",
  [":mod__yawang"] = "锁定技，摸牌阶段，你改为摸X张牌（X为与你体力值相等的角色数）。",
  ["@mod__yawang-turn"] = "雅望",
  ["$mod__yawang1"] = "君子，当以正气立于乱世。",
  ["$mod__yawang2"] = "琰，定不负诸位雅望！",
}
yawang:addEffect(fk.EventPhaseStart, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(self) and player.phase == Player.Draw
  end,
  on_use = function(self, event, target, player, data)
    local n = 0
    for _, p in ipairs(player.room.alive_players) do
      if p.hp == player.hp then
        n = n + 1
      end
    end
    player:drawCards(n, self.name)
    player.room:addPlayerMark(player, "mod__yawang-turn", n)
    return true
  end,

  refresh_events ={fk.CardUsing},
  can_refresh = function(self, event, target, player, data)
    return target == player and player:usedSkillTimes(self.name, Player.HistoryTurn) > 0
  end,
  on_refresh = function(self, event, target, player, data)
    player.room:addPlayerMark(player, "@mod__yawang-turn", 1)
  end,
})
return yawang